package com.gxa.jjty.core.pojo;


import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.*;
import java.io.Serializable;
import java.sql.Timestamp;

/**
 * @author 雅风
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Table(name = "evaluate_config") // 创建数据表的注解
@ApiModel("评价配置实体类")
public class EvaluateConfig implements Serializable {

  @Id
  @GeneratedValue(strategy = GenerationType.IDENTITY)
  @Column(name = "id")
  private Long id;

  @Column(name = "matter_name")
  private String matterName;

  @Column(name = "result_one")
  private String resultOne;

  @Column(name = "result_two")
  private String resultTwo;

  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  @Column(name = "created_time")
  private Timestamp createdTime;

  @Column(name = "state")
  private Boolean state;


}
